from django.urls import path
from . import views

app_name = 'ai_image'

urlpatterns = [
    # 页面路由
    path('image/', views.image_list, name='image_list'),
    path('image/create/', views.create_image, name='create_image'),
    path('image/test/', views.volcengine_test_view, name='volcengine_test'),
    path('image/display-test/', views.image_display_test, name='image_display_test'),
    path('image/gallery/', views.image_gallery, name='image_gallery'),
    
    # API 接口路由 - 统一使用api/前缀
    path('images/generate/', views.generate_image_api, name='generate_image_api'),
    path('images/', views.image_list_api, name='image_list_api'),
    path('images/<int:image_id>/', views.image_detail_api, name='image_detail_api'),
    
    # 图片代理服务
    path('images/proxy/<int:image_id>/', views.image_proxy, name='image_proxy'),
]